Report post

How to run a batch file on startup?

You have to make two files, one is autorun.inf file and another one is .bat file. Autorun file will specify the file name of batch file to be run on startup. Generally there are several .exe applications in a pendrive to be run at startup, so we create one batch file and input every executable files name into it to be run at startup.

Where do I start a batch script?

Try start "" "c:\users\me\appdata\roamingestest.exe". Always run your batch scripts from the command prompt instead of double-clicking them. This way, you can actually read what the error you get is. There are two issues: The /D option solely defines the starting or working directory, but not the program to execute.

Where does my batch file resides?

My batch file resides in /D means starting directory. Remove it. It's probably thinking your argument is a title (see start /? ). Try start "" "c:\users\me\appdata\roamingestest.exe". Always run your batch scripts from the command prompt instead of double-clicking them. This way, you can actually read what the error you get is.

Related articles

The World's Leading Crypto Trading Platform

Get my welcome gifts